<div id="accordion">
		<h3 class="slot_top"><a href="#">Database dei materiali</a></h3>
		<div> <!-- Accordion slot #top -->
			<div id="list_container">
				<table id="lista">
					<thead>
					<tr>
						<td>Id</td>
						<td>Materiale</td>
						<td>Azione</td>
					</tr>
					</thead>
					<tbody>
					<?php foreach ($this->materials as $mat): ?>
					<tr>
						<td class="material_id">
						<?php echo $mat['id']; ?>
						</td>
						<td class="material_name">
						<?php echo $mat['name']; ?>
						</td>
						<td class="material_action">
						<a href="javascript:openMaterialDetails(<?php echo $mat['id'] ?>);"><img src="/images/icon_edit.gif" /></a>
						</td>
					</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
			</div>		</div>
		<h3 class="slot_bottom"><a href="#">Dettaglio del materiale</a></h3>
		<div>  <!-- Accordion slot #bottom -->
			<?php 
			echo $this->detailForm; 
			?>
		</div> <!-- /Accordion slot #bottom -->
</div>

<!--  OVERLAYS / MATERIALS -->

<div id="X-browse-categories" style="display: none;" title="Seleziona una categoria">
	<p>&nbsp</p>
	<select id="material_categories" name="material_categories">
		<option value="0">Non categorizzato</option>
		<?php foreach ($this->material_categories as $cat): ?>
		<option value="<?=$cat['id']; ?>"><?=$cat['name']; ?></option>
		<?php endforeach; ?>
	</select>
</div>
